package com.atguigu.spring.test;

import com.atguigu.spring.controller.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class springtest {
    @Test
    public void test(){
        ApplicationContext IOC = new ClassPathXmlApplicationContext("spring-config.xml");
        UserController userController =IOC.getBean(UserController.class);
        System.out.println(userController);
    }
}
